package com.aaa.whj.service.impl;

import com.aaa.whj.dao.ILoginDao;
import com.aaa.whj.entity.Plan;
import com.aaa.whj.entity.Tab_scl_record;
import com.aaa.whj.service.ILoginService;
import com.util.SqlSessionFactoryUtil;
import org.apache.ibatis.session.SqlSession;

import java.util.List;

public class LoginServiceImpl implements ILoginService {
    SqlSession session= SqlSessionFactoryUtil.getSession();
    ILoginDao iLogin=session.getMapper(ILoginDao.class);
    @Override
    public List<Plan> only_one(String code1) {
        return this.iLogin.only_one(code1);
    }

    @Override
    public int addRecord(Tab_scl_record tabSclRecord) {
        return this.iLogin.addRecord(tabSclRecord);
    }

    @Override
    public List<Tab_scl_record> only_code(String tel) {
        return this.iLogin.only_code(tel);
    }
}
